]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Use graphene instead of clutter
authorRobert Mader <robert.mader@posteo.de>
Thu, 17 Oct 2019 09:22:30 +0000 (11:22 +0200)
committerRobert Mader <robert.mader@posteo.de>
Thu, 17 Oct 2019 09:31:59 +0000 (11:31 +0200)
This was forgotten after the graphene type port landed.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/770

js/ui/workspace.js

index acad9eaf70570c380b80845995bd52802e64cf00..dc4c212b32b14c1a982e03c4e67d37262cff69b1 100644 (file)
@@ -1,7 +1,8 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 /* exported Workspace */
 
-const { Atk, Clutter, GLib, GObject, Meta, Pango, Shell, St } = imports.gi;
+const { Atk, Clutter, GLib, GObject,
+        Graphene, Meta, Pango, Shell, St } = imports.gi;
 const Signals = imports.signals;
 
 const DND = imports.ui.dnd;
@@ -301,7 +302,7 @@ var WindowClone = GObject.registerClass({
 
     _computeWindowCenter() {
         let box = this.realWindow.get_allocation_box();
-        this._windowCenter = new Clutter.Point({
+        this._windowCenter = new Graphene.Point({
             x: box.get_x() + box.get_width() / 2,
             y: box.get_y() + box.get_height() / 2,
         });